package com.view;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class HtmlView extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTextArea ta_html;
	public HtmlView(String title,String html)
	{
		super(title);
		ta_html=new JTextArea(100,100);
		ta_html.setLineWrap(true);
		ta_html.setText(html);
		ta_html.setEditable(false);
		JScrollPane scroll_panel=new JScrollPane(ta_html);
		this.setSize(800, 480);
		JPanel p=new JPanel(new BorderLayout());
		p.add(scroll_panel,BorderLayout.CENTER);
		this.setContentPane(p);
		this.setVisible(true);
	}

}
